import React,{Component} from 'react'
import {HashRouter,Route} from 'react-router-dom'
import Home from './../router/home'
import About from './../router/about'
import Topic from './../router/topic'
import IRouter from './IRouter'

export default class Router extends Component {
    render(){
        return (
            <HashRouter>
                <IRouter>
                    <Route exact path="/"  component={Home}></Route>
                    <Route path="/topic"  component={Topic}></Route>
                    <Route path="/about"  component={About}></Route>
                </IRouter>
            </HashRouter>
        )
    }
}